<div class="main_content">
	<h1>Administrate Group</h1>

	<%= form_tag(:controller => "entities", :action => "update_group") do %>
	  <% if @group.errors.any? %>
		<div id="error_explanation">
		  <h2><%= pluralize(@group.errors.count, "error") %> prohibited this entity from being saved:</h2>

		  <ul>
		  <% @group.errors.full_messages.each do |msg| %>
			<li><%= msg %></li>
		  <% end %>
		  </ul>
		</div>
	  <% end %>
	  
	  <div class="hiddenfield">
			<%= hidden_field_tag(:id, @group.id) %>
	  </div>
	  
	  <div class="field">
		<%= label_tag(:name, "Name") %>
		<%= text_field_tag(:name, @group.name, :title=>'Change Name') %>
	  </div>
	  <div class="field">
		<%= label_tag(:description, "Description") %>
		<%= text_field_tag(:description, @group.description, :title=>'Change Description') %>
	  </div>
	  <div class="field">
		<%= label_tag(:email, "Email") %>
		<%= text_field_tag(:email, @group.email, :title=>'Change Email') %>
	  </div>
	  <div class="field">
		<%= label_tag(:audio_welcome, "Audio welcome") %>
		<%= text_field_tag(:audio_welcome, @group.audio_welcome, :title=>'Change Audio welcome') %>
	  </div>
	  <div class="field">
		<%= label_tag(:tagline, "Tagline") %>
		<%= text_field_tag(:tagline, @group.tagline, :title=>'Change Tagline') %>
	  </div>
	  <div class="actions">
		<%= submit_tag "Update details", :title=>"Click here to update" %>
	  </div>
	  
	<% end %>

	<%= link_to 'Back to your page', entity_path(session[:user_id]) %>
</div>